from peewee import AutoField, IntegerField, BigIntegerField, CharField
from common.model.abstrct import AbstractModel, AbstractModelWithID


class TotalCurrency(AbstractModelWithID):

    class Meta:
        table_name = "tb_currency"
        indexes = (
            (("code", ), True),
        )
    name = CharField(max_length=16, help_text="币种名字")
    code = CharField(max_length=3, help_text="币种code")
    symbol = CharField(max_length=1, help_text="币种符号,暂定一位")
